package com.pand.model.zmxy;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * 
 * @ClassName: ZmxyCfg
 * @Description: 芝麻信用对接配置
 *
 */
@Entity
@Table(name = "ZMXY_CFG")
@SequenceGenerator(name = "SEQ_ZMXY_CFG", sequenceName = "SEQ_ZMXY_CFG", allocationSize = 1)
public class ZmxyCfg implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 主键
	 */
	private Long id;
	
	/**
	 *  组织id
	 */
	private Long orgId;
	
	/**
	 *  芝麻开放平台地址
	 */
	private String serverUrl;
	
	/**
	 *  商户应用Id
	 */
	private String appId;
	
	/**
	 *  芝麻RSA公钥
	 */
	private String zmPublicKey;
	
	/**
	 *  商户RSA私钥
	 */
	private String privateKey;
	
	/**
	 *  授权回调地址
	 */
	private String authCallbackUrl;
	
	/**
	 *  信用分设定
	 */
	private String zmScore;
	
	/**
	 *  商户应用场景，默认值是应用名称，否则必须是在创建应用时的场景信息之一
	 */
	private String typeId;
	
	/**
	 *  api:商户后台调用,apppc:商户pc端调用,appsdk:商户移动sdk调用,app:商户独立appH5调用
	 */
	private String channel;
	
	/**
	 *  产品编号
	 */
	private String zmPrductCode;
	
	/**
	 *  创建时间
	 */
	private Timestamp createTime;
	
	/**
	 *  修改时间
	 */
	private Timestamp updateTime;

	@Id
	@GeneratedValue(generator = "SEQ_ZMXY_CFG")
	@Column(name = "ID")
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "ORG_ID")
	public Long getOrgId() {
		return orgId;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	@Column(name = "SERVER_URL")
	public String getServerUrl() {
		return serverUrl;
	}

	public void setServerUrl(String serverUrl) {
		this.serverUrl = serverUrl;
	}

	@Column(name = "APP_ID")
	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	@Column(name = "ZM_PUBLIC_KEY")
	public String getZmPublicKey() {
		return zmPublicKey;
	}

	public void setZmPublicKey(String zmPublicKey) {
		this.zmPublicKey = zmPublicKey;
	}

	@Column(name = "PRIVATE_KEY")
	public String getPrivateKey() {
		return privateKey;
	}

	public void setPrivateKey(String privateKey) {
		this.privateKey = privateKey;
	}

	@Column(name = "AUTH_CALLBACK_URL")
	public String getAuthCallbackUrl() {
		return authCallbackUrl;
	}

	public void setAuthCallbackUrl(String authCallbackUrl) {
		this.authCallbackUrl = authCallbackUrl;
	}

	@Column(name = "ZM_SCORE")
	public String getZmScore() {
		return zmScore;
	}

	public void setZmScore(String zmScore) {
		this.zmScore = zmScore;
	}

	@Column(name = "TYPE_ID")
	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

	@Column(name = "CHANNEL")
	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	@Column(name = "ZM_PRDUCT_CODE")
	public String getZmPrductCode() {
		return zmPrductCode;
	}

	public void setZmPrductCode(String zmPrductCode) {
		this.zmPrductCode = zmPrductCode;
	}

	@Column(name = "CREATE_TIME")
	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "UPDATET_TIME")
	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

}
